<?php
/**
 * 提成管理验证器
 */

namespace app\common\validate;

class CommissionValidate extends Validate
{
    protected $rule = [
            'staff_id|员工' => 'require',
    'status|是否启用' => 'require',
    'commission_time|提成时间' => 'require',

    ];

    protected $message = [
            'staff_id.require' => '员工不能为空',
    'status.require' => '是否启用不能为空',
    'commission_time.require' => '提成时间不能为空',

    ];

    protected $scene = [
        'add'  => ['staff_id','commission_time'],
'edit' => ['commission_time'],

    ];

    

}
